﻿define(['knockout'],
    function (ko) {
        return function DraggablePrototype (data) {
            "use strict";

            var self = this;

            self.active =  ko.observable(false);

            self.top = ko.observable(data ? data.top : 0);
            self.left = ko.observable(data ? data.left : 0);

            self.rawData =  ko.computed(function(){
            	return {
                    top: self.top(),
                    left: self.left()};
            });
        };
    });